package com.fourth.controller.api;

import com.fourth.service.UBBannerService;
import com.ljx.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 蒋一飞
 * @adte 2023/3/2 19:31
 */
@RestController
@RequestMapping("vip/api/home/banner")
public class APIUBBannerController {
    @Resource
    private UBBannerService ubBannerService;

    /**
     * 首页轮播图信息
     * @return
     */
    @GetMapping("/rotationalSeeding")
    public Result getBanner() {
        return ubBannerService.getBanner();
    }

}
